<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Message
 *
 * @property int $id
 * @property string|null $title 标题
 * @property string|null $content 评论内容
 * @property int $demand_id 需求id
 * @property int $activity_id 活动id
 * @property int $to_user_id 收到消息的用户
 * @property string|null $type 类型 demand：需求消息 activity：活动消息
 * @property int $is_read 是否已查看
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Message onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereActivityId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereDemandId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereIsRead($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereToUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Message withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Message withoutTrashed()
 * @mixin \Eloquent
 * @property int $img_id 消息图片
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereImgId($value)
 * @property string|null $detail 详情
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereDetail($value)
 * @property int $system_message_type 系统消息类型 0：发给所有人 1：发给个别人
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereSystemMessageType($value)
 * @property int $unit_apply_id 认证申请id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereUnitApplyId($value)
 * @property int $link_id 单位入驻id||个人认证id
 * @property string|null $link_type 跳转类型personal_auth:个人认证 company_set:单位入驻
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereLinkId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Message whereLinkType($value)
 */
class Message extends Model
{
    protected $table="message";
    use SoftDeletes;
}